xen/arm: gic: Make it clear the GIC node is passed to make_hwdom_dt_node
authorJulien Grall <julien.grall@citrix.com>
Tue, 29 Sep 2015 16:21:35 +0000 (17:21 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 1 Oct 2015 12:50:10 +0000 (13:50 +0100)
commita0542500a9ac029e46cce5f7c51378cf192c7055
tree44486f308326053962b155255c0bc62800e761c4
parent3ba1e8147e511eb7ee52ab5618b9dc0eb8e90eca
xen/arm: gic: Make it clear the GIC node is passed to make_hwdom_dt_node

The callback make_hwdom_dt_node already has the GIC node in parameter.

Rather than using a weird mix between "dt_interrupt_controller" (aliased
to "gic") and "node", rename the callback parameter "node" to "gic" and
remove local GIC definitions in terms of the global
dt_interrupt_interrupt_controller.

Also, add an assert to gic_make_hwdom_dt_node to check that the GIC
really is the global dt_interrupt_controller.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic-hip04.c
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/arch/arm/gic.c
xen/include/asm-arm/gic.h